package com.wnxy.admin.vo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/*
*  报警设置视图对象
* */
@Data
@Document(indexName = "alarmsettingvo")
public class AlarmSettingVo {
    @Id
    private Long alarmId;

    @Field(analyzer = "smartcn",type = FieldType.Text)
    private String alarmName;

    @Field(type = FieldType.Long)
    private Long stationId;

    @Field(analyzer = "smartcn",type = FieldType.Text)
    private String stationName;

    @Field(type = FieldType.Long)
    private Long chargerId;

    @Field(analyzer = "smartcn",type = FieldType.Text)
    private String chargerName;

    @Field(type = FieldType.Integer)
    private Integer alarmLevel;

    @Field(type = FieldType.Integer)
    private Integer status;

    @Field(type = FieldType.Integer)
    private Integer flag;
}
